package nodes.body;

import nodes.declarations.DeclarationListNode;
import nodes.statements.StatementListNode;
import visitors.Visitor;

public final class BlockBodyNode extends BodyNode
{
    public DeclarationListNode decl;
    public StatementListNode stm;

    public BlockBodyNode(DeclarationListNode decl, StatementListNode stm)
    {
        this.decl = decl;
        this.stm = stm;
    }

    @Override
    public Object accept(Visitor v)
    {
        return v.visit(this);
    }
}